import Vue from 'vue';
import App from './App';
import router from './router';
import https from './utils/request';
import './utils/rem.js';
import './assets/css/main.css';
import 'animate.css';
import {getConfig} from "@/api/index";
import '@vant/touch-emulator';
import wx from 'weixin-js-sdk';
import VConsole from 'vconsole';
import {Notify,Dialog} from 'vant';
Vue.use(Notify,Dialog)
getConfig().then(
  (apis) => {
    if(apis.IS_CONSOLE_LOG){
      new VConsole();
    }
    new Vue({
      router,
      el: '#app',
      render: h => h(App),
      beforeMount() {
        Vue.prototype.$http = https;
        Vue.prototype.$API = apis;
        Vue.prototype.$WX = wx;
      }
    });
  }
);




